﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class TaskNpc:Npc
    {
        public string task { get; set; }
        public override void speak()
        {
            Console.WriteLine("name:{0}  type:{1}  task:{2}", this.name, Npctype.任务, this.task);
        }
        public TaskNpc(string name,string task):base(name) {
            this.task = task;
        }
       
    }
}
